"""
#!!===========================================================
#版权（C）2023, Huawei Technologies Co., HUTAF xDevice
#!!===========================================================
#用例编号:      
#用例名称:      
#用例作者:
#修改说明:
#!!===========================================================
"""

# -*- coding: utf-8 -*-
from devicetest.core.test_case import TestCase
from devicetest.aw.OpenHarmony import CommonOH

from aw.Useriam.AuthWidget import SecurityUserIamAuthWidgetHapApi
from aw.Useriam.PinAuth import SecurityUserIamPinAuthApi


class A_Security_IAM_AuthWidget_Fingerprint_Pin_Face_Auth_Func_start(TestCase):

    def __init__(self, controllers):
        self.TAG = self.__class__.__name__
        self.tests = [
        ]
        TestCase.__init__(self, self.TAG, controllers)

    def teardown(self):
        print("收尾工作：删除人脸............")
        SecurityUserIamAuthWidgetHapApi.deletface(self.device1)
        print("收尾工作：删除指纹............")
        SecurityUserIamAuthWidgetHapApi.deletefingerprint(self.device1)
        print("收尾工作：删除口令............")
        SecurityUserIamPinAuthApi.deletePIN(self.device1, "111111", 0)
        print("收尾工作：口令已删除............")
        CommonOH.checkIfTextExist(self.device1, "关闭锁屏密码", expect=False)
        print("收尾工作：回到桌面............")
        CommonOH.goHome(self.device1)
        CommonOH.shell(self.device1, "hdc shell power-shell setmode 600")
